package com.zero.yygh.msm.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author zero
 * @desc 阿里云短信配置信息
 * @create 2021/4/2
 */
@Component
public class ConstantPropertiesUtils implements InitializingBean {

    @Value("${aliyun.msm.regionId")
    private String regionId;
    @Value("${aliyun.msm.accessKeyId")
    private String accessKeyId;
    @Value("${aliyun.msm.secret")
    private String secret;

    public static String REGION_ID;
    public static String ACCESS_KEY_ID;
    public static String SECRET;


    @Override
    public void afterPropertiesSet () throws Exception {
        REGION_ID = regionId;
        ACCESS_KEY_ID = accessKeyId;
        SECRET = secret;
    }
}
